package org.example.weboj.dto;

import lombok.Data;

@Data
public class AdminResponse<T> {
    private boolean success;
    private String message;
    private T data;
    
    public AdminResponse() {}
    
    public AdminResponse(boolean success, String message, T data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }
    
    public static <T> AdminResponse<T> success(String message, T data) {
        return new AdminResponse<T>(true, message, data);
    }
    
    public static <T> AdminResponse<T> success(String message) {
        return new AdminResponse<T>(true, message, null);
    }
    
    public static <T> AdminResponse<T> error(String message) {
        return new AdminResponse<T>(false, message, null);
    }
} 